import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { load } from 'js-yaml'

import * as fs from 'fs'
// 加载配置文件
const config = load(fs.readFileSync('./demo.yml', 'utf8'))

console.log(config)
async function bootstrap() {
  const app = await NestFactory.create(AppModule);
  await app.listen(3000);
}
bootstrap();
